//
//  JKSettingItem.swift
//  afanti
//
//  Created by albert on 16/5/7.
//  Copyright © 2016年 albert. All rights reserved.
//

import UIKit

class JKSettingItem: NSObject {
    var title: String?
    var vcClass: UIViewController?
    
    var operation: (() -> Void)?
    
    class func item (title: String, vcClass: UIViewController, operation: () -> Void) -> JKSettingItem {
        let item = JKSettingItem()
        item.title = title
        item.operation = operation
        item.vcClass = vcClass
        
        return item
    }
    
    class func item (title: String, operation: () -> Void) -> JKSettingItem {
        let item = JKSettingItem()
        item.title = title
        item.operation = operation
        
        return item
    }
    
    class func item (title: String) -> JKSettingItem {
        let item = JKSettingItem()
        item.title = title
        
        return item
    }
}
